package org.dream.ui.chart.impl;

import java.awt.Color;
import java.awt.Graphics;

import org.dream.ui.chart.Axis;

/**
 * @author qiuriyuchen E-mail:panpan_001@126.com
 */
public abstract class AxisImpl implements Axis {

	protected Color gridColor;

	protected Color axisColor;


	public AxisImpl() {

		gridColor = new Color(1, 0, 0, 0.5f);

		axisColor = Color.RED;
	
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dream.ui.chart.impl.Axis#getLabelWidth(java.awt.Graphics)
	 */
	public int getLabelWidth(Graphics g) {
		return 20;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dream.ui.chart.impl.Axis#getAxisColor()
	 */
	public Color getAxisColor() {
		return axisColor;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dream.ui.chart.impl.Axis#setAxisColor(java.awt.Color)
	 */
	public void setAxisColor(Color axisColor) {
		this.axisColor = axisColor;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dream.ui.chart.impl.Axis#getGridColor()
	 */
	public Color getGridColor() {
		return gridColor;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dream.ui.chart.impl.Axis#setGridColor(java.awt.Color)
	 */
	public void setGridColor(Color gridColor) {
		this.gridColor = gridColor;
	}

	

}
